@import "../../../colors";

#navigation {
    .logo {
        margin-right: 10px;

        a {
            display: block;
            transition: .15s ease all;
            margin: 0 6px 0 0;
            border: 0;

            background-image: url("/images/logo_sm.png");
            background-repeat: no-repeat;
            background-position: center center;
            background-size: 95%;
            width: 81px;
            height: 50px;

            &:hover {
                transition: .15s ease all; 
                background-size: 100%;
            }
        }
    }

    .search {
        margin: 0 20px;
        border-right: 0;
        color: $type-white;
        flex-grow: 3;

        .ie9 & {
            width: 100%;
        }

        form {
            margin: 0;
        }

        input {
            display: inline-block;
            margin-top: 5px;
            outline: none;
            border: 0;
            background-color: $active-gray;
            height: 14px;

            &[type=submit] {
                position: absolute;
                
                background-color: transparent;
                background-image: url("/images/nav-search-glass.png");
                background-repeat: no-repeat;
                background-position: center center;     
                background-size: 14px 14px;
                
                width: 40px;
                height: 40px;
            }

            &[type=text] {
                transition: .15s ease background-color; 
                padding: 0;
                padding-right: 10px;
                padding-left: 40px;
                width: calc(100% - 50px);
                height: 40px;
                color: $type-white;
                font-size: .85em;

                &::placeholder {
                    $placeholder-transparent: rgba(255, 255, 255, .75);
                    color: $placeholder-transparent;
                }

                &:focus {
                    transition: .15s ease background-color;
                    background-color: $active-dark-gray;
                }

                .ie9 & {
                    width: 70px;
                }
            }
        }
    }

    .messages,
    .mystuff {
        > a {
            background-repeat: no-repeat;
            background-position: center center;
            background-size: 45%;
            padding-right: 10px;
            padding-left: 10px;
            width: 30px;
            overflow: hidden;
            text-indent: 50px;
            white-space: nowrap;

            &:hover {
                background-size: 50%;
            }
        }

    }

    .messages {
        > a {
            background-image: url("/images/nav-notifications.png");
        }

        .message-count {
            display: none;

            &.show {
                display: block;
                position: absolute;
                top: .5rem;
                right: .25rem;
                border-radius: 1rem;
                background-color: $ui-orange;
                padding: 0 .25rem;
                text-indent: 0;
                line-height: 1rem;
                color: $type-white;
                font-size: .7rem;
                font-weight: bold;
            }
        }
    }

    .mystuff {
        > a {
            background-image: url("/images/mystuff.png");
        }
    }

    .login-dropdown {
        width: 200px;
    }

    .account-nav {
        .user-info {
            padding-top: 14px;
            max-width: 260px;
        }

        > a {
            display: inline-block;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: .8125rem;
            font-weight: normal;

            .avatar {
                margin-right: 10px;
                border-radius: 3px;
                width: 24px;
                height: 24px;
                vertical-align: middle;
            }

            &:after {
                display: inline-block;
                margin-left: 8px;

                background-image: url("/images/dropdown.png");
                background-repeat: no-repeat;
                background-position: center center;
                background-size: 50%;
                width: 20px;
                height: 20px;
                vertical-align: middle;
                content: " ";
            }
        }

        .dropdown {
            padding: 0;
            padding-top: 5px;
            width: 100%;
        }
    }
}
